from time import sleep
from data import Base
from  selenium.webdriver.common.by import By


class KongFZ(Base):

    jianzhi = (By.ID,"com.kongfz.app:id/ll_search")
    sou1 = (By.XPATH,"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.RelativeLayout[1]/android.widget.LinearLayout/android.widget.TextView")
    duanyan = (By.XPATH,"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout[2]/android.view.ViewGroup/android.widget.FrameLayout[1]")

    def sou(self,ne):
        self.find_ele(self.jianzhi).click()
        sleep(2)
        self.find_ele(self.duanyan).click()
        sleep(2)
        self.find_ele(self.sou1).click()
        sleep(3)
        